package com.yonglin.mvvmapplication.viewmodel

import android.app.Application
import android.util.Log
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.MutableLiveData
import com.yonglin.mvvmapplication.model.AccountBean

class AccountViewModel(application: Application): AndroidViewModel(application) {
    private var mAccount=MutableLiveData<AccountBean>()
    public fun setAccount(name:String,telPhone:String){
        mAccount.value= AccountBean(name,telPhone)
    }
    public fun getAccount():MutableLiveData<AccountBean>{
        return mAccount
    }

}